import "@babel/polyfill"; //(一定要在最上面，第一行)
import { polyfill } from "es6-promise";
polyfill();
import '@/assets/styles/css/main.css'
// import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import store from './stores/index.ts'
import directives from "./directive"
import GlobalComponent from "@/plugin/Globalcomponent.ts";


import 'vuetify/styles'
import '@mdi/font/css/materialdesignicons.css'
import { createVuetify } from 'vuetify'
import * as components from 'vuetify/components'
import * as vuetifyDirectives from 'vuetify/directives'




import { createApp } from 'vue'

import App from './App.vue'
import router from './router'

const app = createApp(App)
//全局注册指令
directives(app)
const vuetify = createVuetify({
  components,
  directives:vuetifyDirectives,
})



app.use(store)
app.use(router)
app.use(vuetify)
app.use(GlobalComponent)


app.mount('#app')
